package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.OkrInform;
import com.ruoyi.system.mapper.OkrInformMapper;
import com.ruoyi.system.service.IOkrInformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Bruce on 2021/8/16 14:55
 **/
@Service
public class OkrInformServiceImpl implements IOkrInformService {

    @Autowired
    private OkrInformMapper okrInformMapper;

    @Override
    public int insertOkrInform(OkrInform okrInform) {
        return okrInformMapper.insertOkrInform(okrInform);
    }

    @Override
    public List<OkrInform> selectInformByUserId(Long id) {
        return okrInformMapper.selectInformByUserId(id);
    }

    @Override
    public int deleteInformById(Long id) {
        return okrInformMapper.deleteInformById(id);
    }

    @Override
    public List<OkrInform> selectInformByUser(Long userId, Long parentId) {
        return okrInformMapper.selectInformByUser(userId, parentId);
    }
}
